<?php
	use yii\captcha\Captcha;
	use admin\assets\AppAsset;
	AppAsset::addJs($this,'/static/js/login.js');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title><?php echo WEB_TITLE; ?>后台管理系统</title>
    <link rel="stylesheet" href="/static/login/css/style.css"/>
    <!-- 提示升级高级浏览器操作 -->
    <style>
    	.ie-content{  position: fixed; left: 0; top: 0; right: 0; bottom:0; background:#fff; z-index: 1000;}
		.ie-content-bj{ width: 1000px; height: 380px; position: fixed; left: 50%; top: 36%; margin:-190px 0 0 -500px; background:url(img/sj.jpg) no-repeat; }
		.ie-list{ padding:168px 0 0 371px; }
		.ie-list a{ margin-right: 80px; }
    </style>
</head>
<body class="body_bj">
	<div class="login">
		<div class="logo">
<!--			<img src="/static/login/img/logo.png" alt="">-->
            <?php echo WEB_TITLE; ?>管理后台
		</div>
		<ul class="login-list">
			<form action="/site/login" method="post" id="login_form">
				<li><input name="AdminLoginForm[account]" value="<?php echo $post['email']; ?>" type="account" placeholder="请输入管理账号"></li>
				<li><input name="AdminLoginForm[password]" value="<?php echo $post['password']; ?>" type="password" placeholder="请输入密码"></li>
				<li><input name="AdminLoginForm[verifyCode]" value="<?php echo $post['verifyCode']; ?>" placeholder="请输入验证码">
					<span class="yzm2">
						<?php echo Captcha::widget(['name'=>'captchaimg','captchaAction'=>'site/Captcha','imageOptions'=>['id'=>'captchaimg', 'title'=>'换一个', 'alt'=>'换一个', 'style'=>'cursor:pointer;width:100px'],'template'=>'{image}']); ?>
					</span>
				</li>
				<li style="cursor:pointer"><a class="btn" type="submit" id="login">登录</a></li>
			</form>

			<div style="color:red;" id="error_show">
				<?php if(Yii::$app->session->getFlash('error')): ?>
				<?php foreach(Yii::$app->session->getFlash('error') as $val): ?>
				<li><?php echo $val; ?></li>
				<?php endforeach; ?>
				<?php endif; ?>
			</div>

			<li class="tar"><a href="<?php echo \yii\helpers\Url::to(['site/forget']); ?>">忘记密码？</a></li>
		</ul>
	</div>
</body>
</html>